<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>内蒙古草都饲草料研究院</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<link href="static/css/cdyjy.css" rel="stylesheet" type="text/css" />
  </head>
  
 <body>
<!--头部开始 -->
<%@include file="../../frame/head.jsp" %>
<!--头部结束 -->
<!--中间内容块开始 -->
<div class="center_main">
  <div class="main">
    <div class="main_bg">
      <div id="left">
        <div class="leftbg" style="border-bottom:none; margin-top:0px;">
          <div class="bt"><span>关于我们</span></div>
          <div class="left_nr" style="border-bottom:none">
            <div class="lnr">
              <ul>
                 <li><a href='dic/goAboutUs.do' title='关于我们'>关于我们</a></li>
				<!-- <li><a href='dic/goDepartment.do' title='部门职责'>部门职责</a></li> -->
				<li><a href='dic/goAboutUs.do' title='荣誉资质'>荣誉资质</a></li>
				<li class="cpfl_yj"><a href='dic/goExpert.do' class=''>专家风采</a></li> 
              </ul>
            </div>
          </div>
        </div>
      </div>
      <div id="right">
        <div class="bt1"><span>网上留言</span><small>当前位置：<a href="index.jsp">首页</a>&nbsp;-&nbsp;网上留言</small></div>
        <div class="dpwz">
          <h1>
  <script language="JavaScript" type="text/javascript">
function is_number(str)
{
	exp=/[^0-9()-]/g;
	if(str.search(exp) != -1)
	{
		return false;
	}
	return true;
}
function is_email(str)
{ if((str.indexOf("@")==-1)||(str.indexOf(".")==-1))
{
	return false;
	}
	return true;
}
function CheckInput(){
	if(form.name.value==''){
		alert("请填写您的留言昵称！");
		form.name.focus();
		return false;
	}
	if(form.name.value.length>30){
		alert("昵称不能超过30个字符！");
		form.name.focus();
		return false;
	}
	if(!is_number(document.form.qq.value)){
		alert("QQ号只能是数字哦！");
		form.qq.focus();
		return false;
	}
	if(!is_email(form.email.value) && form.email.value!='')
	{ alert("您的EMail地址是错误的！");
		form.email.focus();
	return false;
	}
	if(form.title.value==''){
		alert("请您填写留言标题！");
		form.title.focus();
		return false;
	}
	if(form.title.value.length>50){
		alert("留言标题不能超过50个字符！");
		form.title.focus();
		return false;
	}
	if(form.content.value==''){
		alert("您没有填写留言内容！");
		form.content.focus();
		return false;
	}
	if(form.content.value.length>500){
		alert("留言内容超过500个字符！");
		form.content.focus();
		return false;
	}
	return true;
}
</script>
  <table width="91%" border="0" align="center" cellpadding="0"  cellspacing="4">
    <tr>
      <td align="center"><form action="msg/save.do" method="post" name="form" id="form" onsubmit="return(CheckInput())">
        <table width="100%" border="0" align="center" >
          <tr>
            <td colspan="3"><table  width="100%" border="0" class="log_titlewidth=&quot;100%&quot;">
              <tr>
                <td width="58%" align="right"><strong>发 表 留 言</strong></td>
                <td align="right"><a href="msg/listmsg.do"  class="link3">查看留言</a></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" colspan="3"><input name="temp" type="hidden" id="temp3" value="testG" /></td>
          </tr>
          <tr>
            <td   height="23" align="right">留言昵称：</td>
            <td colspan="2" align="left"><input name="name" type="text" size="20"  class="input" />
              <font color="#FF0000">*</font></td>
          </tr>
          <tr>
            <td height="22" align="right"><p>电子邮箱：</p></td>
            <td colspan="2" align="left"><input name="email" type="text" class="input" size="20" /></td>
          </tr>
          <tr>
            <td height="23" align="right">留言ＱＱ：</td>
            <td colspan="2" align="left"><font color="#FF0000">
              <input name="qq2" type="text" size="20"  class="input" />
            </font></td>
          </tr>
          <tr>
            <td height="26" align="right">联系电话：</td>
            <td colspan="2" align="left"><input name="phone" type="text"  value="" size="30" class="input" /></td>
          </tr>
          <tr>
            <td height="26" align="right">来自哪里：</td>
            <td width="237" align="left"><select name="area" id="select2" size="1" style="border: 1px solid #E6E6E6">
              <option value="未知" selected="selected">未知</option>
              <option value="北京">北京</option>
              <option value="上海">上海</option>
              <option value="天津">天津</option>
              <option value="重庆">重庆</option>
              <option value="河北">河北</option>
              <option value="山西">山西</option>
              <option value="内蒙古">内蒙古</option>
              <option value="辽宁">辽宁</option>
              <option value="吉林">吉林</option>
              <option value="黑龙江">黑龙江</option>
              <option value="江苏">江苏</option>
              <option value="浙江">浙江</option>
              <option value="安徽">安徽</option>
              <option value="福建">福建</option>
              <option value="江西">江西</option>
              <option value="山东">山东</option>
              <option value="河南">河南</option>
              <option value="湖北">湖北</option>







              <option value="湖南">湖南</option>
              <option value="广东">广东</option>
              <option value="广西">广西</option>
              <option value="海南">海南</option>
              <option value="四川">四川</option>
              <option value="贵州">贵州</option>
              <option value="云南">云南</option>
              <option value="西藏">西藏</option>
              <option value="陕西">陕西</option>
              <option value="甘肃">甘肃</option>
              <option value="宁夏">宁夏</option>
              <option value="青海">青海</option>
              <option value="新疆">新疆</option>
              <option value="香港">香港</option>
              <option value="澳门">澳门</option>
              <option value="台湾">台湾</option>
              <option value="海外">海外</option>
            </select></td>
            <td width="182" rowspan="2" align="left"><img src="static/bookimg/face/1.gif" id="iface" width="32" height="32" /></td>
          </tr>
          <tr>
            <td height="26" align="right">选择头像：</td>
            <td align="left"><select name="pic" onchange="document.images['iface'].src=options[selectedIndex].value;backwav.src='facechange.wav';" size="1" style="border: 1px solid #E6E6E6">
              <option value="static/bookimg/face/1.gif" selected="selected">NO.01</option>
              
              <option value="static/bookimg/face/2.gif">NO.
                02
                </option>
              
              <option value="static/bookimg/face/3.gif">NO.
                03
                </option>
              
              <option value="static/bookimg/face/4.gif">NO.
                04
                </option>
              
              
            </select>
              &nbsp;</td>
          </tr>
          <tr>
            <td height="26" rowspan="3" align="right">留言表情：</td>
            <td colspan="2" align="left"><input name="face" type="radio" value="1" checked="checked" class="input_radio"/>
              <img src="static/bookimg/icons/1.gif" width="20" height="20" />
              <input type="radio" name="face" value="2" class="input_radio"/>
              <img src="static/bookimg/icons/2.gif" width="20" height="20" />
              <input type="radio" name="face" value="3" class="input_radio" />
              <img src="static/bookimg/icons/3.gif" width="20" height="20" />
              <input type="radio" name="face" value="4" class="input_radio" />
              <img src="static/bookimg/icons/4.gif" width="20" height="20" />
              <input type="radio" name="face" value="5" class="input_radio" />
              <img src="static/bookimg/icons/5.gif" width="20" height="20" />
              <input type="radio" name="face" value="6"  class="input_radio"/>
              <img src="static/bookimg/icons/6.gif" width="20" height="20" /></td>
          </tr>
          <tr valign="middle">
            <td colspan="2" align="left"><input type="radio" name="face" value="7" class="input_radio"/>
              <img src="static/bookimg/icons/7.gif" width="20" height="20" />
              <input type="radio" name="face" value="8" class="input_radio"/>
              <img src="static/bookimg/icons/8.gif" width="20" height="20" />
              <input type="radio" name="face" value="9" class="input_radio"/>
              <img src="static/bookimg/icons/9.gif" width="20" height="20" />
              <input type="radio" name="face" value="10" class="input_radio"/>
              <img src="static/bookimg/icons/10.gif" width="20" height="20" />
              <input type="radio" name="face" value="11"class="input_radio" />
              <img src="static/bookimg/icons/11.gif"width="20" height="20" />
              <input type="radio" name="face" value="12" class="input_radio"/>
              <img src="static/bookimg/icons/12.gif" width="20" height="20" /></td>
          </tr>
          <tr valign="middle">
            <td colspan="2" align="left"><input type="radio" name="face" value="13" class="input_radio"/>
              <img src="static/bookimg/icons/13.gif"width="20" height="20" />
              <input type="radio" name="face" value="14" class="input_radio"/>
              <img src="static/bookimg/icons/14.gif"width="20" height="20" />
              <input type="radio" name="face" value="15" class="input_radio"/>
              <img src="static/bookimg/icons/15.gif"width="20" height="20" />
              <input type="radio" name="face" value="16" class="input_radio"/>
              <img src="static/bookimg/icons/16.gif"width="20" height="20" />
              <input type="radio" name="face" value="17" class="input_radio"/>
              <img src="static/bookimg/icons/17.gif"width="20" height="20" />
              <input type="radio" name="face" value="18" class="input_radio"/>
              <img src="static/bookimg/icons/18.gif"width="20" height="20" /></td>
          </tr>
          <tr>
            <td height="26" align="right">留言性质：</td>
            <td colspan="2" align="left">
              <input name="type" type="radio" value="1" checked="checked" class="input_radio"/>
              公开
              <input type="radio" name="type" value="2" class="input_radio"/>
              悄悄话</td>
          </tr>
          <tr>
            <td align="right">留言标题：</td>
            <td colspan="2" align="left"><input name="title" type="text" size="30" class="input" />
              <font color="#FF0000">* </font></td>
          </tr>
          <tr>
            <td align="right" valign="middle">留言内容：</td>
            <td colspan="2" align="left"><textarea name="content" cols="40" rows="9" id="textarea" ></textarea></td>
          </tr>
          <!-- <tr>
            <td align="right" valign="middle">验证码：<br />
            </td>
            <td colspan="2" align="left"><input name="CheckCode" type="text" id="CheckCode" size="8" maxlength="6" />
              <span class="table-xia"><img src="inc/checkcode.html" onclick="this.src='inc/checkcode.html'" /></span></td>
          </tr> -->
          <tr>
            <td colspan="3" valign="middle"><table  width="100%" border="0">
              <tr>
                <td align="center"><input name="submit" type="submit" class="log" id="submit3" value="发表留言" />
                  <input class="log" type="reset" name="Submit2" value="清除留言" /><input name="lybid" id="lybid" type="hidden" value="save" />
                  <input type="button" value="返　　回" name="cmdExit" onclick=" history.back()" /></td>
              </tr>
            </table></td>
          </tr>
        </table>
      </form></td>
    </tr>
  </table>
  </h1>
        </div>
      </div>
      <div class="clear"></div>
    </div>
  </div>
</div>
<!--中间内容块结束 -->
<!--bottom开始 -->
<%@include file="../../frame/bottom.jsp" %>
<!--bottom结束 -->
</body>
</html>
